import { Component, OnInit } from '@angular/core';

/**
 * @user: 180300
 * @date: 2018/4/21 14:33
 * @description: taskHome 任务总页面
 *
 */

@Component({
  selector: 'app-task-home',
  templateUrl: './task-home.component.html',
  styleUrls: ['./task-home.component.scss']
})
export class TaskHomeComponent implements OnInit {
  lists = [
    {
      id: 1,
      name: '待办',
      tasks: [
        {
          id: 1,
          desc: '去星巴克喝咖啡',
          owner: {
            id: 1,
            name: '张三',
            avatar: 'icons1'
          },
          deuDate: new Date()
        }
      ]
    },
    {
      id: 1,
      name: '进行中',
      tasks: [
        {
          id: 1,
          desc: '下班去打球',
          owner: {
            id: 1,
            name: '李四',
            avatar: 'icons1'
          },
          deuDate: new Date()
        },
        {
          id: 2,
          desc: '学习英语',
          owner: {
            id: 1,
            name: '李四',
            avatar: 'icons1'
          },
          deuDate: new Date()
        }
      ]
    },
    {
      id: 1,
      name: '已完成',
      tasks: [
        {
          id: 1,
          desc: '喝牛奶',
          owner: {
            id: 1,
            name: '付超',
            avatar: 'icons1'
          },
          deuDate: new Date()
        },
        {
          id: 2,
          desc: '学习编程',
          owner: {
            id: 1,
            name: '李四',
            avatar: 'icons1'
          },
          deuDate: new Date()
        }
      ]
    }
  ];

  constructor() { }

  ngOnInit() {
  }
  openTaskModal() {
    // todo
  }

}
